import mx.rpc.events.FaultEvent;

public function callLoginUser():void
{
	alert("Gebruiker inloggen …");
	alert(tiEmail.text + " " + tiPassword.text)
	
    userService.setCredentials(tiEmail.text, tiPassword.text);
	userService.setRemoteCredentials(tiEmail.text, tiPassword.text);
}

public function returnError(event:FaultEvent):void
{
	alert(event.fault.faultString + " " + event.fault.faultCode + " " + event.fault.faultDetail);
}

private function alert(text:String):void
{
	taOutput.appendText(text + "\n");
}